package org.hyl.javabase.dao;

import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

public class demo2 {
	public static void main(String[] arg) {
		dao d = new dao();
		d.setView("temp1");
		String s[] = { "id", "name" };
		List<?> l = d.select(s);
		Iterator<?> it = l.iterator();
		while (it.hasNext()) {
			HashMap<?, ?> hm = (HashMap<?, ?>) it.next();
			for (Object o : hm.keySet()) {
				System.out.println(o.toString() + " " + hm.get(o));
			}
		}
	}
}
